import request from '@/utils/axios-config'

// 轮播图相关API
export function getBannerList() {
  return request({
    url: '/admin/sysBanner/list',
    method: 'get'
  })
}

export function getBannerPage(params) {
  return request({
    url: '/admin/sysBanner/page',
    method: 'get',
    params
  })
}

export function getBannerDetail(id) {
  return request({
    url: `/admin/sysBanner/detail/${id}`,
    method: 'get'
  })
}

export function saveOrUpdateBanner(data) {
  return request({
    url: '/admin/sysBanner/saveOrUpdate',
    method: 'post',
    data
  })
}

export function deleteBanner(id) {
  return request({
    url: `/admin/sysBanner/deleteById/${id}`,
    method: 'delete'
  })
} 